Component({
    properties: {
        sta: String,
        staTwo: String
    },
    data: {
        imag1: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/tab_my_active.png",
        imag2: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/tab_my_normal.png",
        image1: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/tab_index_active.png",
        image2: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/tab_index_normal.png"
    },
    lifetimes: {
        attached: function() {
            console.log(this.data.sta), console.log(this.data.staTwo);
        },
        detached: function() {}
    },
    methods: {
        go: function(t) {
            console.log(t.currentTarget.id), "sy" == t.currentTarget.id && wx.redirectTo({
                url: "/packageC/hospital/hospital_ind/hospital_ind"
            }), "wd" == t.currentTarget.id && wx.redirectTo({
                url: "/packageC/hospital/mycenter/mycenter"
            });
        }
    }
});